/*

function rhinoClearsign(dataPath,keyChainPath,signkey,passphrase)
{
    var data = lucidenv.loadRes(dataPath);
    var keyChainData = lucidenv.loadRes(keyChainPath);
    var passCallback = {
        entries: {},
        askForPassphrase: function() { return passphrase }
    }

    var newoptions = {
        secKeyringData: keyChainData,
        sigKeyIds: signkey,
        passCache: passCallback,
        clearsign: true
    }

    return pgp_encryptData(data, newoptions);
}

function rhinoDecrypt(cipherTextPath,keyChainPath,passphrase)
{
    var ciphertext = lucidenv.loadRes(cipherTextPath);
    var keyChainData = lucidenv.loadRes(keyChainPath);
    var passCallback = {
        entries: {},
        askForPassphrase: function() { return passphrase }
    }

    var options = {
        passCache: passCallback,
        secKeyringData: keyChainData
    }

    return pgp_decryptData( ciphertext, options );
}

function rhinoEncrypt(dataPath,keyChainPath,recipientIds)
{
    var data = lucidenv.loadRes(dataPath);
    var keyChainData = lucidenv.loadRes(keyChainPath);
    var theoptions = {
        pubKeyringData: keyChainData,
        encKeyIds: recipientIds
    }
    return pgp_encryptData( data, theoptions );
}

function rhinoInAndOutByRef(someref)
{
    var retval = lucidenv.loadRes(someref);
    lucidapi.debug(retval);
    return retval;
}

function rhinoInAndOutByVal(someval)
{
    var retval = someval;
    lucidapi.debug(retval);
    return retval;
}

*/
